package com.lenovo.study.core.listener;


import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.annotation.WebListener;

/**
 * Author: fuxh3@lenovo.com
 * Date: Created in 2017/8/23 0023
 */
@WebListener
public class CustomListener implements ServletContextListener{
    private static final Logger logger = LogManager.getLogger(CustomListener.class);
    @Override public void contextInitialized(ServletContextEvent servletContextEvent) {
        logger.info("contextInitialized");
    }

    @Override public void contextDestroyed(ServletContextEvent servletContextEvent) {
        logger.info("contextDestroyed");
    }
}
